<template>
	<form @submit="send" report-submit=true style="width:100%;">
		<button v-if="mode=='button'" class="weui-login" formType="submit" :class="className">
			 <slot />
		</button>
		<view v-if="mode=='view'" >
			<slot />
		</view>
	</form>
</template>

<script>
	export default {
		name: 'orderStatus',
		props: {
			mode:{
				type: String,
				default: "button"
			},
			width:{
				type: String,
				default: "100%"
			},
			className:{
				type: String,
				default: "from-btn"
			}
		},
		data() {
			return {
			}
		},
		created() {
		},
		methods: {
			send(e){
				this.$common.getFormIDs(e); //存储FormID
			}
		}
	}
</script>

<style lang="scss">
	.from-btn{
		padding:0px;
		display:inherit;
		line-height:1;
		background-color:transparent;
		border: 0px;
		padding:0px;
		font-size: unset;
		// font-size:14px;
	}
</style>
